
app.controller("homeCtrl", function($scope, $http) {
	
	var now = (new Date().getTime() - 24*60*60*1000).toString()
	$scope.now1 = now.slice(0,now.length - 3)
	//	http://api.chuchujie.com/api?client={"ageGroup":"AG_0to24","channel":"QD_web_webkit",
	//	"deviceId":"0","gender":"0","imei":"0","packageName":"com.culiu.purchase",
	//	"platform":"wap","sessionId":"0","shopToken":"0","userId":"0","version":"1.0","xingeToken":""}
	//	&query={"module":"brand","category":"all","function":"list"}
	$http.get('/api/api', {
		params: {
			client: {
				"ageGroup": "AG_0to24",
				"channel": "QD_web_webkit",
				"deviceId": "0",
				"gender": "0",
				"imei": "0",
				"packageName": "com.culiu.purchase",
				"platform": "wap",
				"sessionId": "0",
				"shopToken": "0",
				"userId": "0",
				"version": "1.0",
				"xingeToken": ""
			},
			query: { "module": "brand", "category": "all", "function": "list" }
		}
	}).then(function  (res) {
//		console.log(res)
         $scope.arr = res.data.data
		
	})
})